﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/SitePublic.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="VentaPorCatalogos.Login.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" language="javascript">
        $().ready(function () {
            $("#form1").validate(
                {
                    onsubmit: false,
                    rules: {
                        '<%=txtUsuario.UniqueID %>': {
                            required: true
                        },

                        '<%=txtPassword.UniqueID %>': {
                            required: true
                        }
                    }

                })
            });

            function Aceptar() {
                return $("#form1").valid();
            }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cntContent" runat="server">
<div id="divUsuario" >
    <fieldset>
        <legend>Iniciar Sesión</legend>
        <div class="field">
            <asp:Label ID="lblUsuario" AssociatedControlID="txtUsuario" runat="server" Text="Usuario"></asp:Label>
            <asp:TextBox ID="txtUsuario" runat="server"></asp:TextBox>
        </div>
        <div class="field">
            <asp:Label ID="lblPassword" AssociatedControlID ="txtPassword" runat="server" Text="Contraseña"></asp:Label>
            <asp:TextBox ID="txtPassword" TextMode="Password"   runat="server"></asp:TextBox>
        </div>
    </fieldset>
</div>
<br />
   <div id="divCommand">
       <asp:Button ID="btnAceptar" runat="server" Text="Aceptar" OnClientClick="javascript:return Aceptar();" 
           onclick="btnAceptar_Click" />
       <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" />
       <br />
       <br />
       <asp:Label ID="txtmensaje" runat="server" Text=""></asp:Label>
   </div>
</asp:Content>
